package com.spring.annotation;

import com.spring.aop.LogAspec;
import com.spring.aop.MathMethod;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 将业务类和切面类管理起来
 */
@Configuration
@EnableAspectJAutoProxy
public class AspeConfig {

    @Bean
    public MathMethod mathMethod() {
        return new MathMethod();
    }

    @Bean
    public LogAspec logAspec() {
        return new LogAspec();
    }
}
